<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>24°超市简介</title>
    <link href="https://fonts.googleapis.com/css?family=Oswald&display=swap" rel="stylesheet">


    <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700i" rel="stylesheet">

    <style>

        * {
            margin: 0;
            padding: 0;
        }

        .timeline {
            display: flex;
            margin: 0 auto;
            flex-wrap: wrap;
            flex-direction: column;
            max-width: 700px;
            position: relative;
        }

        .timeline__content-title {
            font-weight: normal;
            font-size: 66px;
            margin: 0px 0 0 0;
            transition: 0.4s;
            padding: 0 10px;
            box-sizing: border-box;
            font-family: 'Oswald', sans-serif;
            color: #fff;
        }

        .timeline__content-desc {
            margin: 0;
            font-size: 15px;
            box-sizing: border-box;
            color: rgba(255, 255, 255, .7);
            font-family: 'Roboto Condensed', sans-serif;
            font-weight: normal;
            line-height: 25px;
        }

        .timeline:before {
            position: absolute;
            left: 50%;
            width: 2px;
            height: 100%;
            margin-left: -1px;
            content: "";
            background: rgba(255, 255, 255, .07);
        }

        @media only screen and (max-width: 767px) {
            .timeline:before {
                left: 40px;
            }
        }

        .timeline-item {
            padding: 40px 0;
            opacity: 0.3;
            filter: blur(2px);
            transition: 0.5s;
            box-sizing: border-box;
            width: calc(50% - 40px);
            display: flex;
            position: relative;
            transform: translateY(-80px);
        }

        .timeline-item:before {
            content: attr(data-text);
            letter-spacing: 3px;
            width: 100%;
            position: absolute;
            color: rgba(255, 255, 255, .5);
            font-size: 13px;
            font-family: 'Pathway Gothic One', sans-serif;
            border-left: 2px solid rgba(255, 255, 255, .5);
            top: 70%;
            margin-top: -5px;
            padding-left: 15px;
            opacity: 0;
            right: calc(-100% - 56px);
        }

        .timeline-item:nth-child(even) {
            align-self: flex-end;
        }

        .timeline-item:nth-child(even):before {
            right: auto;
            text-align: right;
            left: calc(-100% - 56px);
            padding-left: 0;
            border-left: none;
            border-right: 2px solid rgba(255, 255, 255, .5);
            padding-right: 15px;
        }

        .timeline-item--active {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0px);
        }

        .timeline-item--active:before {
            top: 50%;
            transition: 0.3s all 0.2s;
            opacity: 1;
        }

        .timeline-item--active .timeline__content-title {
            margin: 0px 0 20px 0;
        }

        @media only screen and (max-width: 767px) {
            .timeline-item {
                align-self: baseline !important;
                width: 100%;
                padding: 0 30px 150px 80px;
            }

            .timeline-item:before {
                left: 10px !important;
                padding: 0 !important;
                top: 50px;
                text-align: center !important;
                width: 60px;
                border: none !important;
            }

            .timeline-item:last-child {
                padding-bottom: 40px;
            }
        }

        .timeline__img {
            max-width: 100%;
            box-shadow: 0 10px 15px rgba(0, 0, 0, .4);
        }

        .timeline-container {
            width: 100%;
            position: relative;
            padding: 80px 0;
            transition: 0.3s ease 0s;
            background-attachment: fixed;
            background-size: cover;
        }

        .timeline-container:before {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            content: "";
        }

        .timeline-header {
            width: 100%;
            text-align: center;
            margin-bottom: 80px;
            position: relative;
        }

        .timeline-header__title {
            color: #fff;
            font-size: 58px;
            font-family: 'Oswald', sans-serif;
            font-weight: normal;
            margin: 0;
        }

        .timeline-header__subtitle {
            color: rgba(255, 255, 255, .5);
            font-family: 'Pathway Gothic One', sans-serif;
            font-size: 16px;
            letter-spacing: 5px;
            margin: 10px 0 0 0;
            font-weight: normal;
        }

        .demo-footer {
            padding: 60px 0;
            text-align: center;
        }

        .demo-footer a {
            color: #999;
            display: inline-block;
            font-family: Cardo;
        }

        .el-header {
            background-color: #B3C0D1;
            color: #333;
            text-align: center;
            line-height: 60px;
        }

        .el-main {
            background-color: #E9EEF3;
            color: #333;
            text-align: center;
            line-height: 160px;
        }

        html, body {
            height: 100%; /* 让整个页面占满浏览器窗口的高度 */
            margin: 0; /* 去除默认的外边距 */
            padding: 0; /* 去除默认的内边距 */
        }

        #app {
            height: 100%; /* 让#app占满整个页面的高度 */
        }

        .el-container {
            height: 100%; /* 让.el-container占满#app的高度 */
        }

        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: #333;
            color: white;
            padding: 10px 20px;
        }

        header a {
            color: white;
            text-decoration: none;
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
        }

        nav li {
            padding: 0 15px;
        }

        .logo img {

            border-radius: 50%;
        }


    </style>
</head>
<body>
<div class="timeline-container" id="timeline-1">
    <button style="position:fixed;margin-left: 1400px; width: 80px; height: 40px;margin-top: -40px;background-color: #55557f; color: ghostwhite;" onclick="changePage('buyGoods')"> 返&nbsp&nbsp&nbsp&nbsp&nbsp回</button>
    <div class="timeline-header">
        <h2 class="timeline-header__title">24°超市</h2>
        <h3 class="timeline-header__subtitle">"贴心便捷，品质生活"</h3>
    </div>
    <div class="timeline">
        <div class="timeline-item" data-text="便捷性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/d1.jpg"/>
                <h2 class="timeline__content-title">随需应变</h2>
                <p class="timeline__content-desc">
                    24°超市的全天候开放体现了对顾客购物时间的灵活性和便利性，让顾客可以根据自己的时间安排随时前往购物，满足各类消费需求。这种便捷性对于忙碌的现代生活方式来说非常重要，让顾客无需受限于传统的营业时间，提高了购物的便利程度。
            </div>
        </div>
        <div class="timeline-item" data-text="多样性">
            <div class="timeline__content"><img class="timeline__img" src="../image/d2.jpg"/>
                <h2 class="timeline__content-title">多元满足</h2>
                <p class="timeline__content-desc">24°超市提供丰富多样的商品选择，包括食品、日用品、家居用品、电子产品等多个品类，并且不断更新和扩展产品线，以满足不同顾客的多样化需求。这种多样性反映了对市场需求的深刻理解，在满足基本需求的同时，也能为顾客提供更广泛的选择，增加购物乐趣。
            </div>
        </div>
        <div class="timeline-item" data-text="贴心服务">
            <div class="timeline__content"><img class="timeline__img" src="../image/d4.jpg"/>
                <h2 class="timeline__content-title">热情周到</h2>
                <p class="timeline__content-desc">24°超市注重服务质量，通过员工专业培训，提供友好、亲切的帮助和咨询，确保顾客获得良好的购物体验。这种贴心服务增强了顾客对超市的信任感，促进了顾客的再次光顾和口碑传播。
            </div>
        </div>
        <div class="timeline-item" data-text="质量保证">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/d3.jpg"/>
                <h2 class="timeline__content-title">新鲜优质</h2>
                <p class="timeline__content-desc">24°超市特别设立蔬果区、肉类区、海鲜区等专门部门，以确保新鲜食材和优质商品的供应。这种质量保证提升了顾客的购物信心，让顾客放心购买，也构建了超市的良好形象。
            </div>
        </div>
        <div class="timeline-item" data-text="全面性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/d5.jpg"/>
                <h2 class="timeline__content-title">综合服务</h2>
                <p class="timeline__content-desc">除了日常生活所需的商品外，24°超市还提供其他服务，如自助结账系统，以加快结账速度。这种全面性关注顾客整体购物体验，为顾客创造更高效和愉快的购物环境。</div>
        </div>
        <div class="timeline-item" data-text="灵活性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/d6.jpg"/>
                <h2 class="timeline__content-title">时间弹性</h2>
                <p class="timeline__content-desc">24°超市的开放时间灵活，适应不同顾客的作息时间和购物需求。这种灵活性让更多的顾客能在方便的时间段内进行购物，提高了超市的客流量和影响力。
            </div>
        </div>
        <div class="timeline-item" data-text="品牌知名度">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/d7.jpg"/>
                <h2 class="timeline__content-title">信誉卓越</h2>
                <p class="timeline__content-desc">作为一家知名的连锁超市品牌，24°超市在市场中拥有广泛的认可和口碑。多年来，它以卓越的服务质量和出色的购物体验赢得了顾客的喜爱与信赖。

                    24°超市秉持着追求卓越的经营理念，在商品选择、品质保证、便捷性和服务水平方面不断创新和提升。通过精心挑选各类商品，并确保其品质和新鲜度，24°超市始终以顾客需求为导向，为顾客提供高品质的购物体验。除此之外，24°超市注重与供应商的合作与沟通，以确保商品的稳定供应和竞争力的价格。这种紧密的合作关系为顾客提供了更多优质、多样化的选择，进一步提升了品牌在市场中的知名度和竞争力。
            </div>
        </div>
    </div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script>

    (function ($) {
        $.fn.timeline = function () {
            var selectors = {
                id: $(this),
                item: $(this).find(".timeline-item"),
                activeClass: "timeline-item--active",
                img: ".timeline__img"
            };
            selectors.item.eq(0).addClass(selectors.activeClass);
            selectors.id.css(
                "background-image",
                "url(" +
                selectors.item
                    .first()
                    .find(selectors.img)
                    .attr("src") +
                ")"
            );
            var itemLength = selectors.item.length;
            $(window).scroll(function () {
                var max, min;
                var pos = $(this).scrollTop();
                selectors.item.each(function (i) {
                    min = $(this).offset().top;
                    max = $(this).height() + $(this).offset().top;
                    var that = $(this);
                    if (i == itemLength - 2 && pos > min + $(this).height() / 2) {
                        selectors.item.removeClass(selectors.activeClass);
                        selectors.id.css(
                            "background-image",
                            "url(" +
                            selectors.item
                                .last()
                                .find(selectors.img)
                                .attr("src") +
                            ")"
                        );
                        selectors.item.last().addClass(selectors.activeClass);
                    } else if (pos <= max - 40 && pos >= min) {
                        selectors.id.css(
                            "background-image",
                            "url(" +
                            $(this)
                                .find(selectors.img)
                                .attr("src") +
                            ")"
                        );
                        selectors.item.removeClass(selectors.activeClass);
                        $(this).addClass(selectors.activeClass);
                    }
                });
            });
        };
    })(jQuery);

    $("#timeline-1").timeline();


    function changePage(page) {
        var currentPageUrl = window.location.href; // 获取当前页面地址
        var currentPageFileName = currentPageUrl.substring(currentPageUrl.lastIndexOf("/") + 1); // 获取当前页面的文件名
        var newUrl = currentPageUrl.replace(currentPageFileName, page + ".html"); // 构建新的链接地址
        window.location.href = newUrl; // 页面跳转
    }
</script>
</body>
</html>